<script setup>
import {toMiniAppRedPage, toPageUtils} from "../../../utils/utils";

const pop = defineProps({
  banners: Array
})
const clickImg = (index) => {
  console.log("")
  toPageUtils(pop.banners[index])
}
</script>

<template>
  <view class="bcbz" v-if="banners.length>0">
    <u-swiper
        :list="banners"
        :autoplay="true"
        duration="800"
        interval="3800"
        indicator
        indicatorMode="line"
        radius="5"
        show-menu-by-longpress
        keyName="image"
        autoplay
        @click="clickImg"
        circular width="240rpx" height="180rpx">
    </u-swiper>
  </view>
</template>

<style scoped lang="scss">

</style>